export { ignoreRetryCodes } from '@peng_kai/kit/request/queryClient';
export { queryClient } from './queryClient';
export * as queries from './queries';

export function getNextPageParam(lastPage: any) {
  const { pagination } = lastPage ?? {};

  if (pagination?.has_more) {
    return {
      cursor: pagination.cursor as number,
    };
  }
}
